﻿
using System;
using System.Threading.Tasks;
using Quartz;

namespace QuartzNet
{
    class TotalJob : IJob
    {
        private readonly KeyWordsTotalService _keyWordsTotalService = new KeyWordsTotalService();
        public async Task Execute(IJobExecutionContext context)
        {
            await Console.Out.WriteLineAsync("TotalJob|Execute");
            await _keyWordsTotalService.DeleteKeyWordsRank();
            await _keyWordsTotalService.InsertKeyWordsRank();
        }
    }
}
